home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2 / DJTST200.ZIP / tests / libc / ansi / stdio / fscanf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-20  |  264 b   |  20 lines

  1. #include <stdio.h>
  2.  
  3. int
  4. main(void)
  5. {
  6.   FILE *f = fopen("fscanf.in", "r");
  7.   char buf[1000];
  8.   void **b[2];
  9.   b[0] = (void *)&buf;
  10.  
  11.   printf("buf = %p\n", buf);
  12.  
  13.   fscanf(f, "%s", buf);
  14.  
  15.   printf("buf = `%s'\n", buf);
  16.  
  17.   fclose(f);
  18.   return 0;
  19. }
  20.